<template>
  <div>
    <auth-dialog></auth-dialog>
  </div>
</template>

<script>
import AuthDialog from "@/layout/components/AuthDialog/index.vue";

export default {
  name: "index",
  components:{
    AuthDialog
  },
  mounted() {
    // 跳转判断
    this.jumpIndex()
  },
  methods:{
    jumpIndex(){
      if(!this.$store.getters.isFinishAuth){
        return;
      }
      // 获取用户的权限
      const roles = this.$store.getters.roles

      // 默认都跳转到订单列表
      this.$router.push({
        name: 'stickerList'
      })
      // if(roles.indexOf('editor') !== -1){
      //
      // }else{
      //   this.$router.push({
      //     path:'/404',
      //   })
      // }

      console.log("跳转页面")
    }
  },
}
</script>

<style scoped>

</style>
